Fix vnc configuration issue for creating vmx guest.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 20 Sep 2005 09:43:29 +0000 (09:43 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 20 Sep 2005 09:43:29 +0000 (09:43 +0000)
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/image.py

index 6d7f363ffd8d5f391725064f090ecf755a26a508..e4837e27cdcc8a2b6f105b2b70bfeebc8d58bd77 100644 (file)
@@ -300,6 +300,7 @@ class VmxImageHandler(ImageHandler):
         """
         self.parseMemmap()
         self.createDomain()
+        self.dmargs += self.configVNC(sxp.child_value(self.vm.config, 'image'))
 
     def buildDomain(self):
         # Create an event channel
@@ -383,10 +384,13 @@ class VmxImageHandler(ImageHandler):
                instance = sxp.child_value(vtpminfo, 'instance')
                ret.append("-instance")
                ret.append("%s" % instance)
+        return ret
 
+    def configVNC(self, config):
         # Handle graphics library related options
         vnc = sxp.child_value(config, 'vnc')
         sdl = sxp.child_value(config, 'sdl')
+        ret = []
         nographic = sxp.child_value(config, 'nographic')
         if nographic:
             ret.append('-nographic')